import java.util.Collection;

class Stu {

}
class Alg<T extends Comparable>{
    public T isMax(T a,T b,T c){
        if(a.compareTo(b) > 0 ){
            return a;
        }else if(a.compareTo(b) < 0){
            return b;
        }else {
            return c;
        }
    }
}
class Alg2{
    public static<T extends Comparable> T isMax(T a,T b,T c){
         if(a.compareTo(b) > 0 ){
             return a;
         }else if(a.compareTo(b) < 0){
             return b;
         }else {
             return c;
         }
    }
}
public class Demo1{
    public static void main(String[] args) {
        int a = 10;
        Integer b = a;//自动装箱
        Integer c = Integer.valueOf(a);//手动装箱
        System.out.println(c);
        Integer A = 20;
        int B = A;//自动拆箱
        int C = A.intValue();//手动拆箱
        System.out.println(C);

    }

    public static void main1(String[] args) {
        Alg<String> stu = new Alg<>();
        String a = "c";
        String b = "d";
        String c = "0";
        String ret = stu.isMax(a,b,c);
        System.out.println(ret);
    }
}
